<%@ page contentType="text/html; charset=utf-8" import="java.sql.*"%>
<jsp:useBean id="connection" scope="page" class="com.wy.JDBConnection"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="../CSS/style.css">
<title>
Goods_xiangxi page

</title>
</head>
<%!
ResultSet rs=null;
String sql;
String code,userName;
String username,login;
int num;
%>


</title>
</head>
<%
ResultSet rs=null;
String sql;
String code,userName;
String username,login;
int num;
%>

<body bgcolor="#ffffff">
<%
code=request.getParameter("id");
sql="select * from tb_enterprise where id="+code;

login=(String)session.getAttribute("login");
username=(String)session.getAttribute("name");
if(login==null)
{
%>
<script language="javascript">
alert("您还未登录，不能浏览详细信息！！！");
<%
response.sendRedirect("login.jsp");
%>
</script>
<%}
%>
<jsp:include page="mtop.jsp"/>
<form method="POST" action="enterprise_changeConfig.jsp?id=<%=code%>"name="form1">

<table width="785" height="480" border="1" align="center" cellpadding="0" cellspacing="0"bordercolor="#FFFFFF" bordercolordark="#333333" bordercolorlight="#FFFFFF">
  <tr>
    <td width="100%" height="52" colspan="4" align="center">   
  企业信息修改<br></td>
  </tr>
<%try
{
rs=connection.executeQuery(sql);
if(rs.next())
{
%>
<tr>
    <td width="17%" height="29" align="center">企业类型：</td>
    <td width="36%" height="29" align="center">
    <input type="text" name="enterprisesort" size="37" value="<%=rs.getString("enterprisesort")%>">
    </td>
    <td width="17%" height="29" align="center" valign="middle">企业名称：<br></td>
    <td width="30%" height="29" align="center">
    <input type="text" name="enterprisename" size="37" value="<%=rs.getString("enterprisename")%>"><br></td>
  </tr>
  <tr>
    <td width="17%" height="29" align="center">经营范围：<br></td>
    <td width="36%" height="29" align="center">
    <input type="text" name="operation" size="37" value="<%=rs.getString("operation")%>"></td>
    <td width="17%" height="29" align="center" valign="middle">所属区域：</td>
    <td width="30%" height="29" align="center">
    <input type="text" name="workarea" size="37" value="<%=rs.getString("workarea")%>"></td>
  </tr>
  <tr>
    <td width="17%" height="29" align="center">企业地址：</td>
    <td width="36%" height="29" align="center">
    <input type="text" name="address" size="37" value="<%=rs.getString("address")%>"></td>
    <td width="17%" height="29" align="center" valign="middle">联系电话：</td>
    <td width="30%" height="29" align="center">
    <input type="text" name="phone" size="37" value="<%=rs.getString("phone")%>"></td>
  </tr>
  <tr>
    <td width="17%" height="29" align="center">联系人</td>
    <td width="36%" height="29" align="center">
    <input type="text" name="linkman" size="37" value="<%=rs.getString("linkman")%>"></td>
    <td width="17%" height="29" align="center" valign="middle">手机号：</td>
    <td width="30%" height="29" align="center">
    <input type="text" name="handset" size="37" value="<%=rs.getString("handset")%>"><br></td>
  </tr>
  <tr>
    <td width="17%" height="30" align="center">传真号：</td>
    <td width="36%" height="30" align="center"> 
    <input type="text" name="fax" size="37" value="<%=rs.getString("fax")%>"></td>
    <td width="17%" height="30" align="center" valign="middle">邮件网址：</td>
    <td width="30%" height="30" align="center"> 
    <input type="text" name="email" size="37" value="<%=rs.getString("email")%>"></td>
  </tr>
  <tr>
    <td width="17%" height="29" align="center">企业网址<br></td>
    <td width="36%" height="29" align="center">
    <input type="text" name="http" size="37" value="<%=rs.getString("http")%>"></td>
    <td width="17%" height="29" align="center" valign="middle">类型介绍：
    </td><td width="30%" height="29" align="center">
    <input type="text" name="intro" size="37" value="<%=rs.getString("intro")%>"><br></td>
  </tr>
  
  
  
  <tr>
    <td width="17%" height="29" align="center">发布时间<br></td>
    <td width="36%" height="29" align="center">
    <%=rs.getString("issuedate")%></td>
    <td width="17%" height="29" align="center" valign="middle">发布人：
    </td><td width="30%" height="29" align="center">
    <input type="text" name="username" size="37" value="<%=rs.getString("username")%>"></td>
    
  </tr>
 
  
<tr>
 <%
userName=rs.getString("UserName");
 %>
    
  
  </tr>
<%
if(userName.equals(username))
   {
   %>
    <tr>
      <td width="100%" height="45" colspan="4" align="center">
 <input type="submit" value="修改" name="B1">         <a href="reset">重置</a>
        </td>
        
  </tr>

<%
   }

}

}catch(SQLException e)
{
 System.out.print("查询异常！！");
}

%>
</table>
</form>
</body>
</html>
</body>
</html>
